import request from '@/utils/request'
export function getList(params) {
    return request({
            url: '/order/list/mine',
            method: 'POST',
            data: params
        })
        .then(res => {
            return res && res.records
        })
}
export function getCustomerOrderList(params) {
    return request({
            url: '/customer/orderList',
            method: 'POST',
            data: params
        })
        .then(data => {
            return data
        })
}
export function getCashingList(params) {
    return request({
            url: '/order/cashing/list',
            method: 'POST',
            data: params
        })
        .then(res => {
            return res && res.records
        })
}
export function getDetail(params) {
    return request({
            url: '/order/detail',
            method: 'POST',
            data: params
        })
        .then(data => {
            return data
        })
}
export function edit(params) {
    return request({
            url: '/order/edit',
            method: 'POST',
            data: params
        })
        .then(data => {
            return data
        })
}

export function getPayList(params) {
    return request({
            url: '/order/payList',
            method: 'POST',
            data: params
        })
        .then(data => data)
}
//月待付列表
export function getMonthPayList(params) {
    return request({
            url: '/order/cashMonth/pay/list',
            method: 'POST',
            data: params
        })
        .then(data => data && data.records)
}
//月待过期列表
export function getMonthExpireList(params) {
    return request({
            url: '/order/cashMonth/expire/list',
            method: 'POST',
            data: params
        })
        .then(data => data && data.records)
}